package com.hanserwei.community.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 停车费缴纳记录表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("carcharge")
@Schema(description = "停车费缴纳记录")
public class ParkingCharge implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键")
    private Integer id;

    /** 缴费日期 */
    @TableField("pay_date")
    @Schema(description = "缴费日期")
    private LocalDateTime payDate;

    /** 结束日期（原字段为 varchar，为兼容存为字符串） */
    @TableField("end_date")
    @Schema(description = "结束日期（源字段为字符串）")
    private String endDate;

    /** 缴费金额 */
    @TableField("money")
    @Schema(description = "缴费金额")
    private BigDecimal money;

    /** 状态：0-未缴，1-已缴，2-部分缴付 等 */
    @TableField("status")
    @Schema(description = "缴费状态")
    private Integer status;

    /** 关联业主ID */
    @TableField("owner_id")
    @Schema(description = "关联业主ID")
    private Integer ownerId;

    /** 备注 */
    @TableField("remarks")
    @Schema(description = "备注")
    private String remarks;

    /** 缴费类型，如临时、长租等 */
    @TableField("type")
    @Schema(description = "缴费类型，如临时、长租等")
    private String type;

    /** 关联车位ID */
    @TableField("park_id")
    @Schema(description = "关联车位ID")
    private Integer parkId;
}
